﻿body, html, table, tr, td, th, thead, tfoot, tbody, div {
	padding: 0;
	margin: 0;
}

@cell-width: 38px;
@border-solid: 1px solid black;
@border-double-solid: 2px solid black;

.borders(@border) {
	border: @border;
	border-right: none;
	border-bottom: none;
	padding: 0px 2px;

	&:last-of-type {
		border-right: @border;
	}
}

/*Table borders*/
table {
	border-spacing: 0;
	border-bottom: @border-double-solid;

	thead {
		th {
			.borders(@border-double-solid);

			&:first-of-type {
				width: 8px;
			}
		}

		tr:last-of-type {
			th {
				border-bottom: @border-solid;
			}
		}
	}

	tfoot {
		td {
			.borders(@border-double-solid);
		}
	}

	tbody {
		td {
			.borders(@border-solid);

			&:first-of-type {
				border-left: @border-double-solid;
				border-right: @border-solid;
			}

			&:last-of-type {
				border-right: @border-double-solid;
			}

			&:nth-of-type(5), &:nth-of-type(8), &:nth-of-type(11),
			&:nth-of-type(14), &:nth-of-type(17), &:nth-of-type(20) {
				border-left: @border-double-solid;
			}
		}
	}
}

body {
	padding-top: 40px;
	padding-left: 15px;
	padding-right: 15px;
	font-family: 'Times New Roman';
	font-size: 10px;

	section {
		max-width: 495px;
		display: inline-block;

		header {
			font-size: 1.2em;
			font-weight: bold;
			padding: 1px 0px;

			&.header-left {
				padding-left: 30px;

				span:nth-of-type(2) {
					margin-left: 10px;
					margin-right: 40px;
				}
			}

			&.header-right {
				padding-right: 10px;
				text-align: right;

				span:nth-of-type(2) {
					margin-left: 40px;
					margin-right: 10px;
				}
			}
		}

		&:last-of-type {
			margin-left: 1px;
		}
	}

	table {

		thead {
			font-size: 1.1em;

			tr:last-of-type {
				font-style: italic;
				line-height: 12px;
				font-size: 0.8em;
			}

			th {

				&:first-of-type {
					font-style: normal;
				}
			}
		}

		tfoot {

			td {

				div {
					font-size: 0.9em;

					&.pillar {
						font-weight: bold;
						margin-left: 5px;
						display: inline;

						span:last-of-type {
							padding-left: 1px;
							font-size: 120%;
						}
					}
				}

				&:first-of-type {
					font-weight: bold;
					text-align: right;
				}
			}
		}

		tbody {
			td {
				&:nth-of-type(4), &:nth-of-type(7), &:nth-of-type(10),
				&:nth-of-type(13), &:nth-of-type(16), &:nth-of-type(19) {
					width: 35px;
				}

				&:nth-of-type(3), &:nth-of-type(6), &:nth-of-type(9),
				&:nth-of-type(12), &:nth-of-type(15), &:nth-of-type(18) {
					width: 10px;
					text-align: center;
				}

				&:nth-of-type(2), &:nth-of-type(5), &:nth-of-type(8),
				&:nth-of-type(11), &:nth-of-type(14), &:nth-of-type(17) {
					width: 10px;
				}

				&:first-of-type {
					font-weight: bold;
					width: 10px;
					text-align: right;
				}
			}
		}
	}
}
